package com.lear.rrbus.data;

import java.util.List;

public class StationInfo {

	private String name;
	private int index;
	private List<String> times;
	private String link;
	private String count;

	public String getBusCount() {
		return count;
	}

	public void setBusCount(String count) {
		this.count = count;
	}

	public StationInfo(String name, int index, List<String> times, String link) {
		this.name = name;
		this.index = index;
		this.link = link;
		this.times = times;
	}

	public StationInfo(String name, int index, String count, String link) {
		this.name = name;
		this.index = index;
		this.link = link;
		this.count = count;
		// if (!TextUtils.isEmpty(count)) {
		// Integer iValue1 = Integer.getInteger(count);
		// int iValue = 1;
		// if (iValue1 != null) {
		// iValue = iValue1.intValue();
		// }
		// switch (iValue) {
		// case 1:
		// timeFlag = "①";
		// break;
		// case 2:
		// timeFlag = "②";
		// break;
		// case 3:
		// timeFlag = "③";
		// break;
		// case 4:
		// timeFlag = "④";
		// break;
		// default:
		// timeFlag = "①";
		// break;
		// }
		// timeFlag += "站";
		// }
	}

	public int getIndex() {
		return index;
	}

	public String getLink() {
		return link;
	}

	public String getName() {
		return name;
	}

	public List<String> getTimes() {
		return times;
	}

	public String getTimeString() {
		StringBuffer sb = new StringBuffer();
		// sb.append("�?);
		sb.append(name);
		// sb.append("�?);
		return sb.toString();
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setTimes(List<String> times) {
		this.times = times;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(name);
		for (String time : times) {
			sb.append(" - ");
			sb.append(time.toString());
		}
		return sb.toString();
	}

}
